{% extends "templates/atnet_base.html" %}

{% block title %} 
	{{ title }}
{% endblock %}

{% block header %}
{{ header }}
{% endblock %}

{% block login%}
{% if show_login %}
{{ super() }}
{% endif %}
{% endblock%}

{% block navigation %}
{{ super() }}
{% endblock %}

{% block section_menu %}
{% include 'templates/includes_settings_menu.html' %}
{% endblock %}

{% block main_content %}
<p>
	<form method="POST" action="">
	<fieldset>
    <legend>{{ legend }}</legend>
		<div class="div-table">		
			{% if ok_message != "" %}
				<div class="div-table-row">
					<div class="div-table-col-header">
					</div>
					<div class="div-table-col">
						<div class="ok">{{ ok_message }}</div>
					</div>
				</div>
			{% endif %}
			{% for field in main_content %}
				<div class="div-table-row">
					<div class="div-table-col-header">
						{% if fields %}{{ _(fields[field.name]) }}{% else %}{{ field.label.text }}{% endif %}{% if "required" in field.flags %}<div class="error" style="display: inline;">*</div>{% endif %}:
					</div>
					<div class="div-table-col">
						{{ field }}
						{% if field.errors %}
							{% for error in field.errors %}
								<li class="error">{{error}}</li>
							{% endfor %}
						{% endif %}
					</div>
				</div>
			{% endfor %}
		</div>
		<div class="submit" style="padding: 10px">
			<input type="submit" value="Save" class="submitbutton" >
		</div>
		<div>		
<li>Create syndic's - can create new syndics and create admins for them</li>
<li>Syndic manager - can edit it's syndics, create immeuble and lotes for them, create immeuble managers, create lot owners</li>
		</div>
	</fieldset>
	</form>
</p>			
{% endblock %}
